function dist = calculateDistance( A, B )
    dist = sqrt((A.x - B.x)^2 + (A.y - B.y)^2);
end